package cn.edu.hdu.dingSpace;

public class AbstractUser extends AbFactory{

    @Override
    public Ad getad(String name) {
        return null;
    }
    @Override
    public User getuser(String name) {
        if(name.equalsIgnoreCase("User")){
            System.out.println("用户操作准备就绪");
            return new UserOperation();}
        else
            return null;
    }
}
/*       System.out.println("This is PTF");
        if(name.equalsIgnoreCase("Photo1")) {
            System.out.println("Photo1 is ok");
            return new UserOperation();
        }else if(name.equalsIgnoreCase("Photo2")) {
            System.out.println("Photo2 is ok");
            return new delete();
        }
        else {
            System.out.println("No true Vedio");
            return null;
        }

    }
*/
